home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8144 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: A simple question for all the C++ gurus out there!
  5. Date: 15 Feb 1996 02:26:28 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4fu5kk$5b7@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe7.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 13, 1996 20:49:35 in article <A simple question for all the C++
  15. gurus out there!>, '"Abe L. Getchell" <panther@iglou.com>' wrote: 
  16.  
  17.  
  18. >I am trying to write a public member function that will use a private 
  19. >data member from which it inherited from the base class.  This won't
  20. compile. 
  21. >It gives me an error message like "A::a private data member not accessible
  22. in 
  23. >class B".  Why won't this work if the prvate data member being inherited
  24. from 
  25. >the base class A be a private data member of the derived class? 
  26. 'Cause that's what private is.  The behavior you want is 
  27. obtainable by the use of protected access. 
  28.  
  29. -- 
  30. Pete Grant 
  31. Kalevi, Inc. 
  32. Software Engineering & development
  33.